﻿#ifndef _CHARSET_H_
#define _CHARSET_H_
#include<string>
class CCharSet
{
public:
	CCharSet() ;
	~CCharSet() ;
#ifdef _WIN32
	//ANSI转为Unicode编码
	static const std::wstring AnsiToUnciode(const std::string& str);
	//Unicode转Ansi
	static const std::string UnicodeToAnsi(const std::wstring& wstr);
	//UTF8转ANSI
	static const std::string Utf8ToAnsi(const std::string& utf8);
	//ANSI转UTF8
	static const std::string AnsiToUtf8(const std::string& str);
	//UTF8转Uicode
	static const std::wstring Utf8ToUncode(const std::string& utf8);
	//Unciode转UTF8
	static const std::string UnicodeToUtf8(const std::wstring& wstr);
#endif
};
#endif